﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StockTraderRI.Infrastructure.Interfaces;

namespace StockTraderRI.Stub
{
    public class MarketFeedServiceStub : IMarketFeedService
    {
        private Random _rnd = new Random();


        public decimal GetPrice(string tickerSymbol)
        {
            return _rnd.Next(0, 100) / 10;
        }

        public long GetVolume(string tickerSymbol)
        {
            return _rnd.Next(0, 100000);
        }

        public bool SymbolExists(string tickerSymbol)
        {
            return true;
        }
    }
}